<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>统计</title>
    <link rel="shortcut icon" href="favicon.ico">
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../../../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}">
    <link rel="stylesheet" href="../../../static/udi/dist/css/layui.css" th:href="@{/udi/dist/css/layui.css}">
    <link href="../../../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
    <!-- bootstrap-table 表格插件样式 -->
    <link href="../../../static/ajax/libs/bootstrap-table/bootstrap-table.min.css" th:href="@{/ajax/libs/bootstrap-table/bootstrap-table.min.css}" rel="stylesheet"/>
    <link href="../../../static/css/animate.css" th:href="@{/css/animate.css}" rel="stylesheet"/>
    <link href="../../../static/css/style.css" th:href="@{/css/style.css}" rel="stylesheet"/>
    <link href="../../../static/udi/css/jt-ui.css" th:href="@{/udi/css/jt-ui.css}" rel="stylesheet"/>
</head>
<body>
<div class="container-div gray-bg">
    <div class="row">
        <div class="col-sm-12 search-collapse" shiro:hasPermission="base:zhuce:add">
            <form id="corp-form">
                <div class="select-list">
                    <ul>
                        <li>
                            注册/备案证号：<input type="text" id="zcbah" name="zcbah" autocomplete="off"/>
                        </li>
                        <li>
                            注册/备案产品名称：<input type="text" id="zccpmc" name="zcbacpmc" autocomplete="off"/>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>
        <div class="col-sm-12 select-table table-striped">
            <div class="btn-group-sm  col-sm-12" id="toolbar" role="group">
                <a class="btn btn-success btn-sm" onclick="$.operate.add()" shiro:hasPermission="base:zhuce:add">
                    <i class="fa fa-plus"></i> 新增
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()"  shiro:hasPermission="base:zhuce:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="base:zhuce:del">
                    <i class="fa fa-remove"></i> 删除
                </a>
            </div>
            <div>
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
</div>
<script src="../../../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
<script src="../../../static/js/bootstrap.min.js" th:src="@{/js/bootstrap.min.js}"></script>
<script src="../../../static/ajax/libs/bootstrap-table/bootstrap-table.min.js" th:src="@{/ajax/libs/bootstrap-table/bootstrap-table.min.js}"></script>
<script src="../../../static/ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.min.js" th:src="@{/ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.min.js}"></script>
<script src="../../../static/udi/dist/layui.js" th:src="@{/udi/dist/layui.js}"></script>
<script src="../../../static/ajax/libs/blockUI/jquery.blockUI.js" th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script>
<script src="../../../static/udi/js/common.js" th:src="@{/udi/js/common.js}"></script>
<script src="../../../static/udi/js/jt-ui.js" th:src="@{/udi/js/jt-ui.js}"></script>
<script th:inline="javascript">
    /*获取权限标识，如果没有权限就赋值hidden*/
    var editFlag = [[${@permission.hasPermi('base:zhuce:edit')}]];
    var removeFlag = [[${@permission.hasPermi('base:zhuce:del')}]];
    //var datas = [[${@dict.getType('sys_normal_disable')}]];
    var prefix = "/base";
    $(function() {
        var options = {
            url: prefix+"/zcba_list",
            createUrl: prefix + "/add_zcba",
            updateUrl: prefix + "/edit_zcba/{id}",
            detailUrl: prefix + "/detail_zcba/{id}",
            removeUrl: prefix + "/zcba_del",
            sortName: "id",
            modalName: "企业注册备案信息",
            columns: [{
                checkbox: true
            },
                {
                    field: 'id',
                    title: '序号',
                    align: 'center',
                },
                {title: '操作', align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-info btn-xs " href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-plus-square"></i>&nbsp;详情</a> ');
                        return actions.join();
                    }
                },
                {
                    field: 'deptName',
                    title: '企业名称',
                    align: 'center'
                },
                {
                    field: 'zcbah',
                    title: '注册备案证号',
                    align: 'center'
                },
                {
                    field: 'zcbacpmc',title: '注册备案产品名称',align: 'center'
                },
                {
                    field: 'zcbar',title: '注册人/备案人',align: 'center'
                },
                {
                    field: 'yxTime',title: '注册有效期',align: 'center',sortable: true
                }]
        };
        $.table.init(options);
    })
</script>
</body>
</html>